#!/bin/bash

# wget https://download.pingcap.org/tidb-latest-linux-amd64.tar.gz && tar -xzf tidb-latest-linux-amd64.tar.gz
# cp /tidb-latest-linux-amd64.tar.gz .; tar -xzf tidb-latest-linux-amd64.tar.gz

mkdir -p deploy/pd/bin
mkdir -p deploy/tikv1/bin
mkdir -p deploy/tikv2/bin
mkdir -p deploy/tikv3/bin

\cp -fr tidb-v4.0.9-linux-amd64/bin/pd-* deploy/pd/bin

\cp -fr tidb-v4.0.9-linux-amd64/bin/tikv-* deploy/tikv1/bin

\cp -fr tidb-v4.0.9-linux-amd64/bin/tikv-server deploy/tikv2/bin

\cp -fr tidb-v4.0.9-linux-amd64/bin/tikv-server deploy/tikv3/bin
